import sys
import re
file = open("g.txt",mode='r')
lines = file.readlines()
for line in lines:
    if line.startswith("$GPGGA") or line.startswith("$GPGGA"):
        print(line)
